import Cookies from 'js-cookie'

const TokenKey = 'chart-manage-Token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

const CCTVTokenKey = 'cctv-Token'

export function getCCTVToken() {
  return Cookies.get(CCTVTokenKey)
}

export function setCCTVToken(token) {
  return Cookies.set(CCTVTokenKey, token)
}

export function removeCCTVToken() {
  return Cookies.remove(CCTVTokenKey)
}